package com.mywork.mvpkodeinxml.model.response;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Namespace;
import org.simpleframework.xml.Root;

/**
 * Created by mywork on 17/3/16.
 */
@Root(name = "Envelope")
/*@NamespaceList({
        @Namespace(reference = "http://www.w3.org/2001/XMLSchema-instance", prefix = "xsi"),
        @Namespace(reference = "http://www.w3.org/2001/XMLSchema", prefix = "xsd"),
        @Namespace(reference = "http://schemas.xmlsoap.org/soap/encoding/", prefix = "enc"),
        @Namespace(reference = "http://schemas.xmlsoap.org/soap/envelope/", prefix = "soapenv")
})*/
public class ResponseEnvelope {
    @Element(name = "Body")
    public ResponseBody body;

    @Root(name = "Body")
    public static class ResponseBody {
        @Element(name = "CommonFuncResponse", required = false)
        public ResponseModel getListResponse;

        @Root(name = "CommonFuncResponse")
        @Namespace(reference = "http://tempuri.org/")
        public static class ResponseModel {
            @Element(name = "CommonFuncResult")
            public String result;
        }
    }
}
